//package com.plian.system.service.hr.recruitment.impl;
//
//import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
//import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
//import com.plian.Tools.CollectionUtil;
//import com.plian.system.entity.hr.recruitment.PartTimeInfo;
//import com.plian.system.entity.hr.recruitment.RemovalPartTimeInfo;
//import com.plian.system.enumeratea.PartTimeStatus;
//import com.plian.system.mapper.hr.recruitment.PartTimeInfoMapper;
//import com.plian.system.mapper.hr.recruitment.RemovalPartTimeInfoMapper;
//import com.plian.system.mybatis.base.BaseServiceImpl;
//import com.plian.system.service.hr.recruitment.IPartTimeInfoService;
//import com.plian.system.service.hr.recruitment.IRemovalPartTimeInfoService;
//import lombok.AllArgsConstructor;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.stereotype.Service;
//
//import java.util.ArrayList;
//import java.util.Date;
//import java.util.List;
//import java.util.Optional;
//import java.util.stream.Collectors;
//
///**
// * 招聘管理子表 服务实现类
// *
// * @author gangan
// * @since 2019-11-15
// */
//@Slf4j
//@Service
//@AllArgsConstructor
//public class RemovalPartTimeInfoServiceImpl extends BaseServiceImpl<RemovalPartTimeInfoMapper, RemovalPartTimeInfo> implements IRemovalPartTimeInfoService {
//
//
//    @Override
//    public List<RemovalPartTimeInfo> selectRemovalPartTimeInfoStatus(RemovalManagement currRemovalManagement, int status) {
//        List<RemovalPartTimeInfo> partTimeInfos = baseMapper.selectList(new LambdaQueryWrapper<RemovalPartTimeInfo>()
//                .eq(RemovalPartTimeInfo::getRemoveManagementId, currRemovalManagement.getId()).eq(RemovalPartTimeInfo::getStatus, status));
//        return partTimeInfos;
//    }
//
//    @Override
//    public boolean updateStatus(RemovalManagement removalManagement, int status) {
//        LambdaUpdateWrapper<RemovalPartTimeInfo> updateWrapper = new LambdaUpdateWrapper<>();
//        return update(updateWrapper.eq(RemovalPartTimeInfo::getRemoveManagementId, removalManagement.getId()).set(RemovalPartTimeInfo::getStatus, status));
//    }
//}
